<?php
    require("../models/webconfig.php");
    require("../models/class.connection.php");
    require("../models/repositories/class.AccountRepository.php");
    $acccountRes = new AccountRepository();
    if(isset($_POST["code"])){
        $account = $_POST["code"];
    }
    else
        exit();
    if($acccountRes->Detele($account)==true){
        echo "1";
    }
    else{
        echo "0";
    }
?>